package com.by.biz;

import com.by.dao.AdminDao;
import com.by.entity.Admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AdminBizImpl implements AdminBiz{
    @Autowired
    private AdminDao adminDao;
    @Override
    public List<Admin> queryAdminList() {
        return adminDao.queryAdminList();
    }

    @Override
    public Admin adminLogin(Admin admin) {
        return adminDao.adminLogin(admin);
    }

    @Override
    public int addAdmin(Admin admin) {
        return adminDao.addAdmin(admin);
    }
}
